@use "sass:math";
@import "../../css/variables";

.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: $spacer * 3;

  .pagination-page {
    display: flex;
    align-items: center;
    min-width: 1em;
    justify-content: center;

    a {
      border-radius: math.div($border-radius, 2);
      margin: 0 1px;
      padding: 0.5rem 0.75rem;

      &:hover {
        background-color: $gray-200;
        text-decoration: none;
      }
    }

    &.disabled {
      color: $gray-600;
      padding: 0.5rem 0.75rem;
    }

    &.active a {
      background-color: $primary;
      color: #fff;
    }
  }
}
